import React, { FC } from 'react'
import { Typography, Input } from 'antd'
import { QuestTextareaPropsType, QuestTextareaDefaultProps } from './interface'
const { Paragraph } = Typography
const QuestionTextarea: FC<QuestTextareaPropsType> = (props: QuestTextareaPropsType) => {
  const { title = '', placeholder = '' } = { ...QuestTextareaDefaultProps, ...props }
  return (
    <div>
      <Paragraph strong>
        {title}
        <Input.TextArea placeholder={placeholder} />
      </Paragraph>
    </div>
  )
}

export default QuestionTextarea
